package com.zn.opit.shirodemo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zn.opit.shirodemo.domain.entity.SysRoleEntity;
import com.zn.opit.shirodemo.domain.po.SysRolePO;
import com.zn.opit.shirodemo.mapper.SysRoleMapper;
import com.zn.opit.shirodemo.service.SysRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author zhinian
 * @since 2024-02-25
 */
@Service
public class SysRoleServiceImp extends ServiceImpl<SysRoleMapper, SysRoleEntity> implements SysRoleService {

    @Override
    public List<SysRolePO> getRolesByUsername(String username) {
        return this.baseMapper.getRolesByUsername(username);
    }
}
